package com.wujilee.orderservice.service;

import com.wechat.pay.java.service.payments.model.Transaction;
import com.wujilee.dbentity.entity.EntityOrderInfo;

import java.util.List;

/**
 * @author liwuji
 * @date 2024/6/17
 * @desc
 **/
public interface OrderService {
   /**
    * 订单生成
    * @param userId
    * @param payType
    * @return
    */
   EntityOrderInfo creatOrder(Long userId,String payType);

   /**
    * 支付连接生成
    * @param id
    * @return
    */
   String pay(Long id);
   EntityOrderInfo getOrderInfoById(Long id);
   EntityOrderInfo getOrderInfoByNo(String orderNo);
   void saveCodeUrl(Long id, String codeUrl);
   void notifyOrder(Transaction transaction);
   
}
